// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread 'CKTBA' 
:CKTBA_09
wait 0 
0006: 0@ = 0
0006: 1@ = 12643640 
000A: 1@ += 828 
0006: 2@ = 12631144  
0006: 3@ = 0 
0006: 4@ = 0 
0002: jump @CKTBA_258

:CKTBA_110
wait 0   
0006: 0@ = 0

:test_1
wait 0
000A: 0@ += 1
if
gosub @Newdelet_2
jf @test_1
gosub @CarBall_2

:CKTBA_258
0001: wait 0 ms 
00D6: if 
0039:   4@ == 0 
004D: jump_if_false @CKTBA_1823 
0002: jump @CKTBA_335 

:CKTBA_335
0001: wait 0 ms 
00D6: if 
0583:   player $PLAYER_CHAR in_zone 'GRL1B' 
004D: jump_if_false @CKTBA_392 
0002: jump @CKTBA_467 

:CKTBA_392
0001: wait 0 ms 
00D6: if 
0583:   player $PLAYER_CHAR in_zone 'PLS'  
else_jump @CHRBA_2106
0002: jump @CKTBA_467 

:CHRBA_2106
0001: wait 0 ms 
00D6: if 
0583:   player $PLAYER_CHAR in_zone 'GRL2A' 
004D: jump_if_false @CHRBA_2190 
0002: jump @CHRBA_2675 

:CHRBA_2190
0001: wait 0 ms 
00D6: if 
0583:   player $PLAYER_CHAR in_zone 'GRL2C' 
else_jump @CTDBA_4207
0002: jump @CHRBA_2675 

:CTDBA_4207
0001: wait 0 ms 
00D6: if 
0583:   player $PLAYER_CHAR in_zone 'GRL1A' 
004D: jump_if_false @CTDBA_4320 
0002: jump @CTDBA_4490 

:CTDBA_4320
0001: wait 0 ms 
00D6: if 
0583:   player $PLAYER_CHAR in_zone 'GRL1C' 
else_jump @CSFLVBA_6000 
0002: jump @CTDBA_4490 

:CSFLVBA_6000
0001: wait 0 ms 
if
0583:   player $PLAYER_CHAR in_zone 'SF' 
else_jump @CSFLVBA_6050_A
0002: jump @CSFLVBA_6490 

:CSFLVBA_6050_A
0001: wait 0 ms 
if
0583:   player $PLAYER_CHAR in_zone 'RED' 
else_jump @CSFLVBA_6050_B
0002: jump @CSFLVBA_6490 

:CSFLVBA_6050_B
0001: wait 0 ms 
if
0583:   player $PLAYER_CHAR in_zone 'FLINTC' 
else_jump @CSFLVBA_6050_C
0002: jump @CSFLVBA_6490 

:CSFLVBA_6050_C
0001: wait 0 ms 
if
0583:   player $PLAYER_CHAR in_zone 'WHET' 
else_jump @CSFLVBA_6050
0002: jump @CSFLVBA_6490 

:CSFLVBA_6050
0001: wait 0 ms 
00D6: if 
0583:   player $PLAYER_CHAR in_zone 'VE' 
004D: jump_if_false @CSFLVBA_6102 
0002: jump @CSFLVBA_6490 

:CSFLVBA_6102
0001: wait 0 ms 
00D6: if 
0583:   player $PLAYER_CHAR in_zone 'BONE' 
else_jump @CSFLVBA_6151
0002: jump @CSFLVBA_6490 

:CSFLVBA_6151
0001: wait 0 ms 
00D6: if 
0583:   player $PLAYER_CHAR in_zone 'ROBAD' 
004D: jump_if_false @CSFLVBA_6204 
0002: jump @CSFLVBA_6490 

:CSFLVBA_6204
0001: wait 0 ms 
00D6: if 
0583:   player $PLAYER_CHAR in_zone 'ROBAD1' 
else_jump @CKTBA_09
0002: jump @CSFLVBA_6490 

:CKTBA_467
0001: wait 0 ms 
0006: 4@ = 1      
gosub @Memory_Read 
20@ = 410
21@ = 411
22@ = 589 
gosub @Memory_Wirite
gosub @loadmodels
0A8D: 3@ = read_memory 2@ size 4 virtual_protect 0 

:CKTBA_1618
0001: wait 0 ms 
0A8D: 11@ = read_memory 2@ size 4 virtual_protect 0 
000A: 0@ += 1
gosub @Newdelet_1
00D6: if 
003B:   11@ == 3@ // (int)
004D: jump_if_false @CKTBA_1823 
0002: jump @CKTBA_1618 

:CKTBA_1823
0001: wait 0 ms
0006: 0@ = 0 
00D6: if 
0039:   4@ == 1 
004D: jump_if_false @CKTBA_335 
0006: 4@ = 0 
0085: 20@ = 5@ // (int) 
0085: 21@ = 6@ // (int) 
0085: 22@ = 7@ // (int) 
gosub @Memory_Wirite
gosub @loadmodelsb
0002: jump @CKTBA_110 

:CHRBA_2675
0001: wait 0 ms 
0006: 4@ = 1  
gosub @Memory_Read
20@ = 412
21@ = 426
22@ = 475
gosub @Memory_Wirite
gosub @loadmodels
0A8D: 3@ = read_memory 2@ size 4 virtual_protect 0 

:CHRBA_3872
0001: wait 0 ms 
0A8D: 11@ = read_memory 2@ size 4 virtual_protect 0 
000A: 0@ += 1
gosub @Newdelet_1
00D6: if 
003B:   11@ == 3@ // (int)
004D: jump_if_false @CHRBA_3986 
0002: jump @CHRBA_3872 

:CHRBA_3986
0001: wait 0 ms
0006: 0@ = 0 
00D6: if 
0039:   4@ == 1 
004D: jump_if_false @CKTBA_335 
0006: 4@ = 0     
0085: 20@ = 5@ // (int) 
0085: 21@ = 6@ // (int) 
0085: 22@ = 7@ // (int) 
gosub @Memory_Wirite
gosub @loadmodelsb
0002: jump @CKTBA_110 

:CTDBA_4490
0001: wait 0 ms 
0006: 4@ = 1
gosub @Memory_Read 
20@ = 445
21@ = 507
22@ = 516
gosub @Memory_Wirite
gosub @loadmodels
0A8D: 3@ = read_memory 2@ size 4 virtual_protect 0 

:CTDBA_5741
0001: wait 0 ms  
0A8D: 11@ = read_memory 2@ size 4 virtual_protect 0 
000A: 0@ += 1
gosub @Newdelet_1
00D6: if 
003B:   11@ == 3@ // (int)
004D: jump_if_false @CTDBA_5073 
0002: jump @CTDBA_5741 

:CTDBA_5073
0001: wait 0 ms 
0006: 0@ = 0
00D6: if 
0039:   4@ == 1 
004D: jump_if_false @CKTBA_335 
0006: 4@ = 0 
0085: 20@ = 5@ // (int) 
0085: 21@ = 6@ // (int) 
0085: 22@ = 7@ // (int) 
gosub @Memory_Wirite 
gosub @loadmodelsb
0002: jump @CKTBA_110 

:CSFLVBA_6490
0001: wait 0 ms 
0006: 4@ = 1  
gosub @Memory_Read
20@ = 418
21@ = 499
22@ = 526
gosub @Memory_Wirite 
gosub @loadmodels
0A8D: 3@ = read_memory 2@ size 4 virtual_protect 0 

:CSFLVBA_7741
0001: wait 0 ms  
0A8D: 11@ = read_memory 2@ size 4 virtual_protect 0 
000A: 0@ += 1
gosub @Newdelet_1
00D6: if 
003B:   11@ == 3@ // (int)
004D: jump_if_false @CSFLVBA_7073 
0002: jump @CSFLVBA_7741 

:CSFLVBA_7073
0001: wait 0 ms 
0006: 0@ = 0
00D6: if 
0039:   4@ == 1 
004D: jump_if_false @CKTBA_335   
0006: 4@ = 0 
0085: 20@ = 5@ // (int) 
0085: 21@ = 6@ // (int) 
0085: 22@ = 7@ // (int) 
gosub @Memory_Wirite
gosub @loadmodelsb 
0002: jump @CKTBA_110 

:CarBall_1
wait 0 
Model.Destroy(5@)
Model.Destroy(6@)
Model.Destroy(7@)
return 

:CarBall_2
wait 0 
Model.Destroy(20@)
Model.Destroy(21@)
Model.Destroy(22@)
return 

:loadmodels
wait 0
Model.Load(20@)
Model.Load(21@)
Model.Load(22@)

:loadmodels2
if or
   not Model.Available(20@)
   not Model.Available(21@)
   not Model.Available(22@)
jf @loadmodels3 
wait 0 
jump @loadmodels2 

:loadmodels3
return 

:loadmodelsb
wait 0
Model.Load(5@) 
Model.Load(6@)
Model.Load(7@)

:loadmodelsb2
if or
   not Model.Available(5@)
   not Model.Available(6@)
   not Model.Available(7@)
jf @loadmodelsb3 
wait 0 
jump @loadmodelsb2 

:loadmodelsb3
return 

:Memory_Read
wait 0
0A8D: 5@ = read_memory 1@ size 2 virtual_protect 0 
000A: 1@ += 2 
0A8D: 6@ = read_memory 1@ size 2 virtual_protect 0 
000A: 1@ += 2 
0A8D: 7@ = read_memory 1@ size 2 virtual_protect 0 
000E: 1@ -= 4 
jf @Memory_Read
return

:Memory_Wirite
wait 0
0A8C: write_memory 1@ size 2 value 20@ virtual_protect 0 
000A: 1@ += 2 
0A8C: write_memory 1@ size 2 value 21@ virtual_protect 0 
000A: 1@ += 2 
0A8C: write_memory 1@ size 2 value 22@ virtual_protect 0 
000E: 1@ -= 4 
jf @Memory_Wirite
return

:Newdelet_1
wait 0
if 
0@ == 2
jf @Newdelet_1A
gosub @CarBall_1

:Newdelet_1A
return

:Newdelet_2
wait 0
if 
0@ == 2
jf @Newdelet_2A 
return

:Newdelet_2A
wait 0
0AA1: return_if_false

